<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title">复制到</h4>
        </div>
        <div class="modal-body">
            <div class="portlet blue box" >
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-cogs"></i>请在下面的导航树中选择一个文件夹
                    </div>
                    <div class="tools" >

                        <!--<a href="javascript:;" class="reload">
                        </a>-->

                    </div>
                </div>
                <div class="portlet-body" >
                    <div id="tree_1" class="tree-demo" >
                        {$tree}
                    </div>
                </div>
            </div>
            <form class="modalForm form-horizontal" action="{:url('index/Compilation/copy')}" method="post">
                <input type="hidden" name="id" value="{$data.arc_id}">
                <input type="hidden" name="cate_id" value="{$data.category_id}">
                <input type="hidden" class="new_cate" name="new_cate" value="0">
            </form>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn default model1close" data-dismiss="modal">关闭</button>
            <button type="button" class="btn blue save">保存</button>
        </div>
    </div>
</div>
<script>
    dt().modalSave();
    $(function () {
        App.init();
        UITree.init();

        $("#tree_1").on('changed.jstree', function (e, data) {
            var id = data.node.data.id;
            $('.new_cate').val(id);
            return false;
        });
    })
</script>